/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 86131
 * Date: 2023-12-10
 * Time: 16:21
 */
public class Test {
    public static void main(String[] args) {
        BinaryTree binaryTree = new BinaryTree(); //实例化对象
        BinaryTree.TreeNode root = binaryTree.creatTree();  //TreeNode是个静态内部类,要用类名BinaryTree调用TreeNode
        //System.out.println(root.val);
        binaryTree.preOrder(root);
        System.out.println();

    }
}
